CC := gcc
RM := rm -f
CFLAGS := -lpthread -lcurses  -Iinclude -ldl -g -Wall -o

OBJ := connect
OBJS := ./server.o ./connect.o ./client.o

.PHONY:clean
%.o : %.c
	$(CC) $< -c $(CFLAGS) $@

all : $(OBJS)
	$(CC) $^ $(CFLAGS) $(OBJ)

clean:
	$(RM) ./*.o ./source/*.o $(OBJ)

